﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MechServer.Objects.Components.Gauges
{
	public class HeatBuildup : BaseGauge
	{
		public HeatBuildup(int currentLevel,
			Enums.HeatMilestone plateau,
			Guid parentObject,
			int overflow) : base()
		{
			CurrentLevel	= currentLevel;
			Plateau			= plateau;
			Overflow			= overflow;

			BaseGaugeType	= MechServer.Objects.Components.Gauges.Enums.Category.HeatBuildup;
			ParentObject	= parentObject;
		}

		private const int					_maxLevel		= 30;
		private int							_currentLevel;
		private int							_overflow;
		private Enums.HeatMilestone	_plateau;

		#region Properties

		public int MaxLevel
		{
			get
			{
				return _maxLevel;
			}
		}

		public int CurrentLevel
		{
			get
			{
				return _currentLevel;
			}
			set
			{
				_currentLevel = value;
			}
		}

		public int Overflow
		{
			get
			{
				return _overflow;
			}
			set
			{
				_overflow = value;
			}
		}

		public Enums.HeatMilestone Plateau
		{
			get
			{
				return _plateau;
			}
			set
			{
				_plateau = value;
			}
		}

		#endregion
	}
}
